//
//  TTDetailStockListModel.m
//  TaoTuo
//
//  Created by admin on 2019/8/24.
//  Copyright © 2019 admin. All rights reserved.
//

#import "TTDetailStockListModel.h"
#import <objc/runtime.h>

@implementation TTDetailStockListModel

+ (NSDictionary *)modelCustomPropertyMapper {
    return @{
             @"CertImage"  : @"StockCertInfo.CertImage",
             @"CertName" : @"StockCertInfo.CertName",
             @"CertNumber" : @"StockCertInfo.CertNumber",
             @"CertType" : @"StockCertInfo.CertType",
             @"QueryCode" : @"StockCertInfo.QueryCode",
    };
}
    

//- (id)copyWithZone:(NSZone *)zone
//{
//    TTDetailStockListModel *model = [[TTDetailStockListModel allocWithZone:zone] init];
//    
//    // 取出所有属性和实例变量
//    unsigned int count = 0;
//    Ivar *ivars = class_copyIvarList([self class], &count);
//    for (int i = 0; i < count; i++) {
//        
//        const char *name = ivar_getName(ivars[i]);
//        NSString *key = [[NSString alloc] initWithUTF8String:name];
//        NSLog(@"> key = %@", key);
//        
//        // 使用 KVC 方式取值
//        id value = [self valueForKey:key];
//        NSLog(@"使用 KVC 方式取值 ---> %@, %@ = %@", [value className], key, value);
//        [model setValue:value forKey:key];
//        
//        
//    }
//    free(ivars);
//    
//    return model;
//}



@end
